<?php
/**
 * Hoffman Framework
 *
 * LICENSE
 *
 * This source file is subject to the GNU LGPL 2.1 license that is bundled
 * with this package in the file license.txt.
 * It is also available through the world-wide-web at this URL:
 * http://creativecommons.org/licenses/LGPL/2.1
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to annop@thaicyberpoint.com so we can send you a copy immediately.
 *
 * @package    Hoffman
 * @author     Ford AntiTrust
 * @copyright  Copyright (c) 2008 Ford AntiTrust (http://www.thaicyberpoint.com/ford/blog)
 * @since      Version Rv 0.2
 * @license    http://creativecommons.org/licenses/LGPL/2.1
 *             GNU LGPL 2.1
 * @filesource
 */

if (!defined('INDEX'))
    die('No direct script access allowed.');

/**
 * Path
 *
 * Path file
 *
 * @package     Hoffman
 * @category    Paths
 * @author      Ford AntiTrust
 * @version     SVN: $Id: Paths.php 159 2009-07-18 13:50:51Z annop.s@gmail.com $
 * @link        http://www.thaicyberpoint.com/ford/blog/hmf
 */

/**
 * Revision Number
 */
define("REV_NUMBER", '$Revision: 159 $');

/**
 * Configuration of Zend Framework version
 */
define("HMF_USED_ZF", "1.7.0");
/**
 * Configuration for html data
 */
define("PATH_DIR_HTML", '/html');

/**
 * Get absolute path to 'PATH_DIR_ROOT'
 *
 * Begin fixed from .....
 * $pathRoot = str_replace('\\', '/', getcwd());
 * define("PATH_DIR_ROOT", str_replace(PATH_DIR_HTML, '', substr($pathRoot, strrpos(PATH_DIR_HTML, $pathRoot))));
 * unset($pathRoot);
 * End fixed from .....
 *
 */

define("PATH_DIR_ROOT", str_replace('\\', '/', substr(getcwd(), 0, -(strlen(PATH_DIR_HTML)))));

define("PATH_DIR_APPLICATION", PATH_DIR_ROOT . "/application");
define("PATH_DIR_APPLICATION_BOOTSTRAP", PATH_DIR_APPLICATION . "/bootstrap");
define("PATH_DIR_APPLICATION_CONTROLLERS", PATH_DIR_APPLICATION . "/controllers");
define("PATH_DIR_APPLICATION_HELPERS", PATH_DIR_APPLICATION . "/helpers");
define("PATH_DIR_APPLICATION_MODELS", PATH_DIR_APPLICATION . "/models");
define("PATH_DIR_APPLICATION_LANGUAGE", PATH_DIR_APPLICATION . "/language");
define("PATH_DIR_APPLICATION_LANGUAGE_CONTROLLER", PATH_DIR_APPLICATION_LANGUAGE . "/controller");
define("PATH_DIR_APPLICATION_LANGUAGE_COMPONENT", PATH_DIR_APPLICATION_LANGUAGE . "/component");
define("PATH_DIR_APPLICATION_VIEWS", PATH_DIR_APPLICATION . "/views");
define("PATH_DIR_APPLICATION_VIEWS_ERRORS", PATH_DIR_APPLICATION_VIEWS . "/errors");
define("PATH_DIR_APPLICATION_VIEWS_MASTERPAGES", PATH_DIR_APPLICATION_VIEWS . "/masterpages");
define("PATH_DIR_APPLICATION_VIEWS_CONTENTPAGES", PATH_DIR_APPLICATION_VIEWS . "/contentpages");

define("PATH_DIR_LIB", PATH_DIR_ROOT . "/lib");

define("PATH_DIR_LOGS", PATH_DIR_ROOT . "/logs");

define("PATH_DIR_SCHEMA", PATH_DIR_ROOT . "/schema");

define("PATH_DIR_TMP", PATH_DIR_ROOT . "/tmp");
define("PATH_DIR_TMP_CACHE", PATH_DIR_TMP . "/cache");
define("PATH_DIR_TMP_CACHE_DB", PATH_DIR_TMP_CACHE . "/db");
define("PATH_DIR_TMP_CACHE_APP", PATH_DIR_TMP_CACHE . "/app");
define("PATH_DIR_TMP_VIEWS", PATH_DIR_TMP . "/views");
define("PATH_DIR_TMP_VIEWS_MASTERPAGES", PATH_DIR_TMP_VIEWS . "/masterpages");
define("PATH_DIR_TMP_VIEWS_MASTERPAGES_CACHE", PATH_DIR_TMP_VIEWS_MASTERPAGES . "/cache");
define("PATH_DIR_TMP_VIEWS_MASTERPAGES_COMPILE", PATH_DIR_TMP_VIEWS_MASTERPAGES . "/compile");
define("PATH_DIR_TMP_VIEWS_CONTENTPAGES", PATH_DIR_TMP_VIEWS . "/contentpages");
define("PATH_DIR_TMP_VIEWS_CONTENTPAGES_CACHE", PATH_DIR_TMP_VIEWS_CONTENTPAGES . "/cache");
define("PATH_DIR_TMP_VIEWS_CONTENTPAGES_COMPILE", PATH_DIR_TMP_VIEWS_CONTENTPAGES . "/compile");

define("PATH_FILE_APPLICATION_CONFIGURATIONS", PATH_DIR_APPLICATION . "/Configurations.php");
define("PATH_FILE_APPLICATION_ACL", PATH_DIR_APPLICATION . "/Acl.php");
define("PATH_FILE_APPLICATION_ROUTING", PATH_DIR_APPLICATION . "/Routing.php");
define("PATH_FILE_APPLICATION_BOOTSTRAP", PATH_DIR_APPLICATION . "/Bootstrap.php");
define("PATH_FILE_APPLICATION_VIEWS_INFORMATIONS", PATH_DIR_APPLICATION_VIEWS . "/Informations.php");
define("PATH_FILE_APPLICATION_BOOTSTRAP_CONTROLLER", PATH_DIR_APPLICATION_BOOTSTRAP . "/Controller.php");

set_include_path(get_include_path() . PATH_SEPARATOR . PATH_DIR_LIB);
?>